class PayService {

    boolean transactional = true

    def savePayAndUpdateBalance(Pay pay) {

        Customer customer = pay.customer
        customer.addToPays(pay)
        customer.balance += pay.actualValue
        customer.save()


    }
}
